<?php /* Smarty version Smarty-3.1.18, created on 2015-09-28 14:53:51
         compiled from "E:\www\gfour\ws\Admin\View\Chat\special_edit.html" */ ?>
<?php /*%%SmartyHeaderCode:15737560035c992ed81-98180883%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '729dd172af77e93df7bcc7bcc6b54c54028c1ddf' => 
    array (
      0 => 'E:\\www\\gfour\\ws\\Admin\\View\\Chat\\special_edit.html',
      1 => 1443423230,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '15737560035c992ed81-98180883',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_560035c9a4fec3_27799031',
  'variables' => 
  array (
    '_C' => 0,
    'chat' => 0,
    'group' => 0,
    'item' => 0,
    'id' => 0,
    '_L' => 0,
    'action' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_560035c9a4fec3_27799031')) {function content_560035c9a4fec3_27799031($_smarty_tpl) {?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css"/>
	</head>
	<body>
	<div class="am-g">
		 <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		 <div class="am-g">
			<br>
			<div class="am-u-md-10 am-u-end">
				<form class="am-form am-form-horizontal hy-js-form">
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">标题</label>
						<div class="am-u-sm-6">
							<input type="text" name="title" value="<?php echo $_smarty_tpl->tpl_vars['chat']->value['title'];?>
" placeholder="">
						</div>
						<div class="am-u-sm-3">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">副标题</label>
						<div class="am-u-sm-6">
							<input type="text" name="subtitle" value="<?php echo $_smarty_tpl->tpl_vars['chat']->value['subtitle'];?>
" placeholder="">
						</div>
						<div class="am-u-sm-3">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">外链地址</label>
						<div class="am-u-sm-6">
							<input type="text" name="source_url" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['chat']->value['source_url'])===null||$tmp==='' ? 'http://' : $tmp);?>
" placeholder="">
						</div>
						<div class="am-u-sm-3">
						</div>
					</div>
						<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">背景图案</label>
						<div class="am-u-sm-6">
							<select name="color" onchange="changeColor()" class="color">
								<option <?php if ($_smarty_tpl->tpl_vars['chat']->value['color']=='color1') {?>selected="selected"<?php }?> value="color1"  >color1</option>
								<option <?php if ($_smarty_tpl->tpl_vars['chat']->value['color']=='color2') {?>selected="selected"<?php }?> value="color2"  >color2</option>
								<option <?php if ($_smarty_tpl->tpl_vars['chat']->value['color']=='color3') {?>selected="selected"<?php }?> value="color3"   >color3</option>
								<option <?php if ($_smarty_tpl->tpl_vars['chat']->value['color']=='color4') {?>selected="selected"<?php }?> value="color4"   >color4</option>
								<option <?php if ($_smarty_tpl->tpl_vars['chat']->value['color']=='color5') {?>selected="selected"<?php }?> value="color5"  >color5</option>
								<option <?php if ($_smarty_tpl->tpl_vars['chat']->value['color']=='color6') {?>selected="selected"<?php }?> value="color6"   >color6</option>
								<option <?php if ($_smarty_tpl->tpl_vars['chat']->value['color']=='color7') {?>selected="selected"<?php }?> value="color7"  >color7</option>
								<option <?php if ($_smarty_tpl->tpl_vars['chat']->value['color']=='color8') {?>selected="selected"<?php }?> value="color8"   >color8</option>
							</select>
						</div>
						<div class="am-u-sm-3">
							<img id="img_color" <?php if ($_smarty_tpl->tpl_vars['chat']->value['color']) {?>src="/ws/Mobile/Webroot/gf/images/chat/<?php echo $_smarty_tpl->tpl_vars['chat']->value['color'];?>
_content.png" <?php } else { ?> src="/ws/Mobile/Webroot/gf/images/chat/color1_content.png"<?php }?>  width="50%">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label"> 上传图片</label>
						<div class="am-u-sm-6">
							<input type="text" name="pic_url" class="am-input-sm" value="<?php echo $_smarty_tpl->tpl_vars['chat']->value['pic_url'];?>
">
							
				            	
						</div>
						<div class="am-u-sm-3">
							 <img id="hy-thumb" style="height: 30px;" <?php if ($_smarty_tpl->tpl_vars['chat']->value['pic_url']) {?> src="/ws/<?php echo $_smarty_tpl->tpl_vars['chat']->value['pic_url'];?>
" <?php } else { ?> src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
images/logo2.png" <?php }?>>
			             		<button class="am-btn am-btn-primary am-btn-xs hy-js-uploadimg" >上传</button>
						</div>
						
						
						
						
					</div>
					
					
					<div class="am-form-group">
		
							
							<label for="user-name" class="am-u-sm-3 am-form-label">绑定弹框组</label>
							<div class="am-u-sm-6 am-u-end">
								<select name="group_id">
									<option value="0">暂不绑定</option>
									<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['group']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
									<option <?php if ($_smarty_tpl->tpl_vars['item']->value['id']==$_smarty_tpl->tpl_vars['chat']->value['group_id']) {?> selected="selected" <?php }?> value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
</option>
									<?php } ?>
								</select>
								
							</div>
							<div class="am-u-sm-3 am-form-label">若绑定弹框组，则外链地址失效</div>
					
			</div>
			
			
					<div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
							<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
">
							<button type="button" class="am-btn am-btn-primary hy-js-submit"><?php echo $_smarty_tpl->tpl_vars['_L']->value['SAVE'];?>
</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	  <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/editor/kindeditor.js"></script>
	 <script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/jscolor.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		
		function changeColor()
		{
			var src = $(".color option:selected").val();
			
			$("#img_color").attr("src","/ws/Mobile/Webroot/gf/images/chat/"+src+"_content.png");
			
		}
		
		
	    hy_uploadimg('/ad',{},function(result){
	    	if(typeof(result[0])!='undefined')
	    	{
	        	$('#hy-thumb').attr('src',"/ws"+result[0]);
	        	$('input[name=pic_url]').val(result[0]).focus();
	       }
	    })
	    
	    hy_submit('index.php?g=admin&m=chat&a=<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
',{},function(result){
				showMsg(result.content, result.error);
	    		parent.$('#special').attr('src', parent.$('#special').attr('src'));
				});
	</script>
	</body>
</html>
<?php }} ?>
